package com.kaifamiao.uploader.dao;

import com.kaifamiao.uploader.entity.FileInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FileInfoRepository extends JpaRepository<FileInfo, Integer> {

    FileInfo findByIdentifier(String identifier);


    List<FileInfo> findByType(String type);

    List<FileInfo> findByFilenameAndIdentifier(String filename, String identifier);
}